package com.demo.utils;

import com.demo.domain.Dto;

public class DtoUtil {

    public static Dto returnSuccessData(Object data){
        Dto d = new Dto();
        d.setCode(200);
        d.setData(data);
        return d;
    }

    public static Dto returnError(int code,String msg){
        Dto d = new Dto();
        d.setCode(code);
        d.setMsg(msg);
        return d;
    }

}
